package com.css.zfzx.fxpg.modules.vulnerability.area.repository.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author leon
 * @date 2020-11-10
 */
@Data
@Entity
@Table(name = "fx_vulnerability_area")
public class FxVulnerabilityAreaEntity implements Serializable {

    /**
     * 结构类型
     */
    @Column(name = "structure_type")
    private String structureType;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 地区
     */
    @Column(name = "area")
    private String area;
    /**
     * 是否有效
     */
    @Column(name = "is_valid")
    private String isValid;
    /**
     * 创建人
     */
    @Column(name = "create_user")
    private String createUser;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 破坏程度
     */
    @Column(name = "damage_degree")
    private String damageDegree;
    /**
     * 分区标识
     */
    @Column(name = "partition_flag")
    private String partitionFlag;
    /**
     * 行政区划组合编码+探槽码
     */
    @Column(name = "object_code")
    private String objectCode;
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 修改人
     */
    @Column(name = "update_user")
    private String updateUser;

    /**
     * 烈度为6的易损性
     */
    @Column(name = "vulnerability_vi")
    private Float vulnerabilityVI;

    @Column(name = "vulnerability_vii")
    private Float vulnerabilityVII;

    @Column(name = "vulnerability_viii")
    private Float vulnerabilityVIII;

    @Column(name = "vulnerability_ix")
    private Float vulnerabilityIX;

    @Column(name = "vulnerability_x")
    private Float vulnerabilityX;

}

